<?php $coords = $form->getObject() ?>
<h1><?php echo $coords->isNew() ? 'Nuevas' : 'Editar' ?> Coordenadas</h1>

<form action="<?php echo url_for('Coords/update'.(!$coords->isNew() ? '?id='.$coords->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
  <table>
    <tfoot>
      <tr>
        <td>
          &nbsp;<a href="<?php echo url_for('UseCase/index') ?>">Cancelar</a>
          <?php if (!$coords->isNew()): ?>
            &nbsp;<?php echo link_to('Eliminar', 'Coords/delete?id='.$coords->getId(), array('post' => true, 'confirm' => 'Esta usted Seguro?')) ?>
          <?php endif; ?>
          <input type="submit" value="Guardar" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <td>Coordenadas X</td>
        <td>Coordenadas Y</td>
      </tr>
      <tr>
        <td>
           <?php echo $form['coord_x']->renderError() ?>
          (<?php echo $form['coord_x']                ?>,
        </td>
        <td>
          <?php echo $form['coord_y']->renderError() ?>
          <?php echo $form['coord_y']                ?>)
          <?php      $form['id_use_case']=$use_case_id            ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>